import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.util.Scanner;

public class HelloWorldAgain extends java.applet.Applet{ 
Font f= new Font("New Times Roman", Font.BOLD,36);
String name;

public void init(){
	
	System.out.println("please input name");
	Scanner w_name = new Scanner(System.in);
	name = w_name.nextLine();
	name = "Hello, dear "+name+"!";
}
public void paint(Graphics g){
	g.setFont(f);
	g.setColor(Color.blue);
	g.drawString(name,5,50);
}
}